package org.dromara.chicken.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 成长记录对象 chicken_grow
 *
 * @author Mr Lei QQ:235921049
 * @date 2024-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("chicken_grow")
public class Grow extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 标题
     */
    private String orderNo;

    /**
     * 治疗类别
     */
    private String treatId;

    /**
     * 鸡苗批次
     */
    private String hatchId;
    @TableField(exist = false)
    private String hatchName;

    /**
     * 日龄
     */
    private Long ageDay;

    /**
     * 鸡群数量
     */
    private Long chickenNum;

    /**
     * 药品金额
     */
    private BigDecimal totalMoney;

    /**
     * 操作时间
     */
    private Date happenTime;

    /**
     * 说明
     */
    private String remark;

    /**
     * 饲养员
     */
    private Long workerId;

    /**
     * 订单审核人
     */
    private Long auditBy;

    /**
     * 审核状态
     */
    private Long auditStatus;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核备注
     */
    private String auditRemark;
    /*子表*/
    @TableField(exist = false)
    private List<GrowInfo> contentInfo;


}
